package com.guomao.demoj;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class JavaDemoB {

    public static void main(String[] args) {


//        ArrayList<String> week = new ArrayList<>();
//        week.add("Monday");
//        week.add("Tuesday");
//        week.add("Wednesday");
//        week.add("Thursday");
//        week.add("Friday");
//        week.add("Saturday");
//        week.add("Sunday");
//        week.add("星期八");

        List<String> week = List.of("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");

//        System.out.println(week.get(0));
//        for (String s : week) {
//            System.out.println(s);
//        }

//        week.add("星期八");
//        week.remove(1);
//        week.set();

        Set<String> set = Set.of("惊蛰", "小暑", "大暑", "立秋");

        Map<String, String> map = Map.of("adc", "123", "xyz", "567");
//        map.put("123", "123");

        System.out.println(week.getClass());
        System.out.println(set.getClass());
        System.out.println(map.getClass());


    }

}
